package com.zzzy.sys.vo.usermanage;

import com.zzzy.framework.common.annotation.RangeValuesCheck;
import com.zzzy.framework.common.enums.sys.UserStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Schema(description = "修改用户")
@Data
public class UserUpdateReq extends UserAddReq {

    @Schema(description = "用户ID")
    @NotNull(message = "用户ID不能为空")
    private Long id;

    @Schema(description = "状态：新建、启用、暂停、离职", example = "新建")
    @RangeValuesCheck(enumValueRange = UserStatusEnum.class, message = "用户状态填写错误")
    private String status;
}
